package com.clear.honghefinance.biz.modules.assist_calculate_summary.converter;

import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.dto.*;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.entity.AssistCalculateSummary;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.vo.ListAssistCalculateSummaryVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AssistCalculateSummaryConvertor {

    AssistCalculateSummaryConvertor INSTANCE = Mappers.getMapper(AssistCalculateSummaryConvertor.class);


    AssistCalculateSummary convertDTOToEntity(CreateAssistCalculateBaseDTO dto);



    AssistCalculateSummary convertDTOToEntity(CreateAssistCalculateCustomDTO dto);

    AssistCalculateSummary convertDTOToEntity(CreateAssistCalculateCustomerDTO dto);

    AssistCalculateSummary convertDTOToEntity(CreateAssistCalculateDepartmentDTO dto);

    AssistCalculateSummary convertDTOToEntity(CreateAssistCalculateEmployeeDTO dto);

    AssistCalculateSummary convertDTOToEntity(CreateAssistCalculateInventoryDTO dto);

    AssistCalculateSummary convertDTOToEntity(CreateAssistCalculateProjectDTO dto);

    AssistCalculateSummary convertDTOToEntity(CreateAssistCalculateSupplierDTO dto);


    List<ListAssistCalculateSummaryVO> convertEntityListToListAssistCalculateSummaryVOPageResult(List<AssistCalculateSummary> entities);
}
